<?
###########  conexiune la BD  ###########
	$dbhost		= "localhost";
	$dbuser		= "root";
	$dbpasswd	= "";
	$dbname		= "timona";

##############  cale site  ##############

	error_reporting(E_ALL^E_NOTICE);
	//ini_set('display_errors','On');
	define (srvd, 'D:/wamp/www/timona/');     // calea pe server a site-ului
    define (srvurl, 'http://'.$_SERVER["HTTP_HOST"].'/timona/');     // link-ul catre site
	define (smartyPath, srvd.'include/smarty/');             // calea catre directorul Smarty
	
	
	define(tmpd, srvd.'templates/defaults/');               // calea de la config pana la template
	define(tmpd_url, srvurl.'templates/defaults/');               // calea de la config pana la template
	define(tmpl_ext, '.tpl');				  // defineste extensia template-urilor

#### def parametri pt link-uri de SEO####

	define (seoSplitter, '-');										// caracterul care desparte cuvintele din link
	define (rewrite_splitter, '/');									// caracterul care desparte parametri din link
	define (rewrite_ext, '/');									// ultimul caracter din link
	define (noVar, '!'); 											// pt a verifica cand nu e trimis un parametru din link

##############  nu umblati  ##############

	include_once ('smarty/Smarty.class.php');
	require('smarty/SmartyPaginate.class.php');
session_start();

	// init MySQL obj.
	mysql_connect($dbhost,$dbuser,$dbpasswd);
	mysql_select_db($dbname);
    
	
	 include ('Input.php');

        $levels=array("0"  => "Admin","10" => "Agent");
          
        foreach ($_POST as $key => $value) {  
            $var_post= new Input();
            $_POST[$key] = $var_post->post($key);
        }
        
        //This stops SQL Injection in GET vars
        foreach ($_GET as $key => $value) {
            $var_get= new Input();
            $_GET[$key] = $var_get->get($key);
        } 

	$smarty = new Smarty;
	$smarty->compile_check = true;
	$smarty->debugging = false;
	$smarty->compile_dir = srvd.'templates_c/';
	$smarty->assign("srvurl",srvurl);
	$smarty->assign("tmpd_url",tmpd_url);
    require("parcurgere.php");  
#########################################


?>